package com.sjksy.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sjksy.demo.domain.Branch;
import com.sjksy.demo.service.BranchService;
import com.sjksy.demo.mapper.BranchMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author guyueyuan
* @description 针对表【branch】的数据库操作Service实现
* @createDate 2024-12-11 15:37:02
*/
@Service
public class BranchServiceImpl extends ServiceImpl<BranchMapper, Branch>
    implements BranchService{
    @Resource
    private BranchMapper branchMapper;

    /**
     * 查询所有分公司
     * @return
     */
    public List<Branch> AllBranch() {
        return branchMapper.selectList(null);
    }
}




